package com.ruoyi.system.employee.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.employee.mapper.ServiceEmployeeAttendanceMapper;
import com.ruoyi.system.employee.domain.ServiceEmployeeAttendance;
import com.ruoyi.system.employee.service.IServiceEmployeeAttendanceService;
import com.ruoyi.common.core.text.Convert;

/**
 * 员工出勤情况统计Service业务层处理
 * 
 * @author Administrator
 * @date 2021-03-06
 */
@Service
public class ServiceEmployeeAttendanceServiceImpl implements IServiceEmployeeAttendanceService 
{
    @Autowired
    private ServiceEmployeeAttendanceMapper serviceEmployeeAttendanceMapper;

    /**
     * 查询员工出勤情况统计
     * 
     * @param id 员工出勤情况统计ID
     * @return 员工出勤情况统计
     */
    @Override
    public ServiceEmployeeAttendance selectServiceEmployeeAttendanceById(Long id)
    {
        return serviceEmployeeAttendanceMapper.selectServiceEmployeeAttendanceById(id);
    }

    /**
     * 查询员工出勤情况统计列表
     * 
     * @param serviceEmployeeAttendance 员工出勤情况统计
     * @return 员工出勤情况统计
     */
    @Override
    public List<ServiceEmployeeAttendance> selectServiceEmployeeAttendanceList(ServiceEmployeeAttendance serviceEmployeeAttendance)
    {
        return serviceEmployeeAttendanceMapper.selectServiceEmployeeAttendanceList(serviceEmployeeAttendance);
    }

    /**
     * 新增员工出勤情况统计
     * 
     * @param serviceEmployeeAttendance 员工出勤情况统计
     * @return 结果
     */
    @Override
    public int insertServiceEmployeeAttendance(ServiceEmployeeAttendance serviceEmployeeAttendance)
    {
        return serviceEmployeeAttendanceMapper.insertServiceEmployeeAttendance(serviceEmployeeAttendance);
    }

    /**
     * 修改员工出勤情况统计
     * 
     * @param serviceEmployeeAttendance 员工出勤情况统计
     * @return 结果
     */
    @Override
    public int updateServiceEmployeeAttendance(ServiceEmployeeAttendance serviceEmployeeAttendance)
    {
        return serviceEmployeeAttendanceMapper.updateServiceEmployeeAttendance(serviceEmployeeAttendance);
    }

    /**
     * 删除员工出勤情况统计对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    @Override
    public int deleteServiceEmployeeAttendanceByIds(String ids)
    {
        return serviceEmployeeAttendanceMapper.deleteServiceEmployeeAttendanceByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除员工出勤情况统计信息
     * 
     * @param id 员工出勤情况统计ID
     * @return 结果
     */
    @Override
    public int deleteServiceEmployeeAttendanceById(Long id)
    {
        return serviceEmployeeAttendanceMapper.deleteServiceEmployeeAttendanceById(id);
    }
}
